package br.com.montezuma.despesas.models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

import br.com.caelum.vraptor.Resource;

/**
 * <pre>
 * @author : David Montezuma          
 * Purpose      :  Representation of Cargo.
 * Amendment History                                                                
 * Date - Name - Description                              
 * 20/05/2012 - David Montezuma - initial version.
 * 
 * Copyright 2012 Montezuma Software
 * </pre>
 */
@Resource
@Entity
public class Cargo {
	@Id
	@GeneratedValue
	private long id;
	@Column(length = 50, nullable = false)
	private String nome;
	@Column(length = 1, nullable = false)
	private boolean financeiro;
	@Column(length = 1, nullable = false)
	private boolean supervisor;

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the nome
	 */
	public String getNome() {
		return nome;
	}

	/**
	 * @param nome the nome to set
	 */
	public void setNome(String nome) {
		this.nome = nome;
	}

	/**
	 * @return the financeiro
	 */
	public boolean isFinanceiro() {
		return financeiro;
	}

	/**
	 * @param financeiro
	 *            the financeiro to set
	 */
	public void setFinanceiro(boolean financeiro) {
		this.financeiro = financeiro;
	}

	/**
	 * @return the supervisor
	 */
	public boolean isSupervisor() {
		return supervisor;
	}

	/**
	 * @param supervisor the supervisor to set
	 */
	public void setSupervisor(boolean supervisor) {
		this.supervisor = supervisor;
	}


}
